Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@blackglory/go

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blackglory/go

```sh npm install --save @blackglory/go # or yarn add @blackglory/go ```

  • 1.1.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
160
decreased by-84.78%
Maintainers
1
Weekly downloads
 
Created
Source

go

Install

npm install --save @blackglory/go
# or
yarn add @blackglory/go

Usage

import { go } from '@blackglory/go'

go(async () => {
  ...
})

Why?

IIFE is good until you forget to invoke it:

;(async () => {
  ...
}) // oops!

The semicolon-free style is good until you forget to add a semicolon before the IIFE:

const arr = []

// oops!
(async () => {
  ...
})()

API

go

function go<T>(fn: () => T): T

goMicrotask

function goMicrotask<T>(fn: () => Awaitable<T>): Promise<T>

goMarcotask

function goMarcotask<T>(fn: () => Awaitable<T>): Promise<T>

FAQs

Package last updated on 11 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc